package poler.util
{
	import mx.collections.ListCollectionView;
	
	public class CustomCompare
	{
		public static function setLabelMatch(param:String,ac:ListCollectionView,field:String):int{
			if(field != null){
				var num:int;
				for(var x:int = 0;x < ac.length;x++){
					num = x;
					if(ac[x][field].toString() === String(param) ) {
						return num;
					}
				}
			}
			return -1;
		}
		
	//	
	}
}